//
//  BaseCollectionSectionViewModel.m
//  YiCuiMiaoZhang
//
//  Created by Hosel on 2019/4/9.
//  Copyright © 2018 益萃网络科技（中国）有限公司. All rights reserved.
//

#import "BaseCollectionSectionViewModel.h"
#import "CollectionViewMinHeaderFooterViewModel.h"

@implementation BaseCollectionSectionViewModel

@synthesize sectionHeaderView = _sectionHeaderView;
@synthesize sectionFooterView = _sectionFooterView;

- (instancetype) init {
    if (self = [super init]) {
        self.locationInsets = CollectSectionLocationInsetsMake(0, 0, 0, 0, 0, 0);
    }
    return self;
}

- (BaseViewModel *)sectionHeaderView {
    if (_sectionHeaderView == nil) {
        CollectionViewMinHeaderFooterViewModel *headerViewModel = [[CollectionViewMinHeaderFooterViewModel alloc] init];
        _sectionHeaderView = headerViewModel;
    }
    return _sectionHeaderView;
}


- (BaseViewModel *)sectionFooterView {
    if (_sectionFooterView == nil) {
        CollectionViewMinHeaderFooterViewModel *footerViewModel = [[CollectionViewMinHeaderFooterViewModel alloc] init];
        _sectionFooterView = footerViewModel;
    }
    return _sectionFooterView;
}

@end
